package com.bootx.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotEmpty;

@Entity
public class Lottery extends BaseEntity<Long>{

    @NotEmpty
    @Column(nullable = false,updatable = false,unique = true)
    private Integer code;

    @NotEmpty
    @Column(nullable = false,updatable = false,unique = true)
    private String name;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
